<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script>
		var num1=prompt('请输入矩形长度')
		var num2=prompt('请输入矩形宽度')
		console.log(num1*2+num2*2)//周长
		console.log(num1*num2)//面积
	</script>
</head>
<body>
	
</body>
</html>